<template>
  <div class="feature-item" @click="$emit('click')">
    <img class="feature-item__icon" :src="icon" mode="aspectFit">
    <span class="feature-item__label">{{ label }}</span>
  </div>
</template>

<script>
export default {
  props: {
    icon: {
      type: String,
      default: ''
    },
    label: {
      type: String,
      default: ''
    }
  }
}
</script>

<style lang="less">
.feature-item {
  display: inline-flex;
  align-items: center;
  flex-direction: column;

  &__label {
    font-size: 32px;
    font-family: PingFangSC-Regular, PingFang SC;
    font-weight: 400;
    color: #666666;
    line-height: 37px;
    margin-top: 4px;
  }

  &__icon {
    .size(140px);
    border-radius: 8px;
  }
}
</style>
